﻿using System;
using System.Collections.Generic;
using System.Web.UI.WebControls;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;

namespace SPN.Layouts.SPN.pages
{
    public partial class Subscriber : LayoutsPageBase
    {
        #region PageEvents
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SPWeb _Web = SPContext.Current.Web;
                if (Common.Helper.IsListValid(_Web, Common.Helper._Const_SubscriberListName))
                {
                    SPList _List = _Web.Lists[Common.Helper._Const_SubscriberListName];
                    lv_Subscribers.ListId = _List.ID.ToString();
                }
            }
        }
        #endregion
    }
}
